package cn.sdack.go.users.service;

import cn.sdack.go.common.entities.users.RegionEntity;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author sdack
 * @date 2024/2/22
 */
public interface RegionService {

    Page<RegionEntity> queryPage(RegionEntity parma,Integer page, Integer pageSize) throws Exception;

    RegionEntity getByCode(Long code, boolean isChild) throws Exception;

    RegionEntity getById(Long id, boolean isChild) throws Exception;

    List<RegionEntity> getByLevel(Integer level, boolean isChild) throws Exception;

    RegionEntity add(RegionEntity param) throws Exception;

    RegionEntity edit(RegionEntity param) throws Exception;

    RegionEntity del(Long id, boolean isChild) throws Exception;

}
